#[path="Constant.rs"]
mod Constant;
use self::Constant::*;
pub struct MySqlConfig;

impl MySqlConfig {
    pub fn url() -> String {
        format!(
            "mysql://{}:{}@{}:{}/{}?characterEncoding=UTF-8\
            &useUnicode=true&useSSL=false&tinyInt1isBit=false\
            &allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai",
            DB_USER, DB_PASSWORD,DB_HOST,
            DB_PORT,DB_NAME
        )
    }
}
